﻿namespace Common.dto;

public class Page<T>
{
    public int Current { get; set; }

    public int Size { get; set; }

    public int Total { get; set; }

    public ICollection<T> Records { get; set; }

    public Page(List<T> records, int current = 1, int size = 10)
    {
        Current = current;
        Size = size;
        Records = records;
    }

    public Page()
    {
    }
}